<?php header('Content-Type: text/html; charset=utf-8'); ?>
<style type="text/css">
.fd {
	font-family: "MS Serif", "New York", serif;
	font-size: 24px;
	font-style: normal;
	text-decoration: blink;
	background-color: #0C6B8B;
	color: #FFF;
}
.alineacion_agregar_prodcto {
	text-align: center;
}
</style>
<link href="../../webroot/css/styles.css" rel="stylesheet" type="text/css" />
<table width="100%" height="446" border="0" summary="jjj">
  <caption>&nbsp;
  </caption>
  <tr>
    <th width="17%" height="39" scope="col">&nbsp;</th>
    <th colspan="4" align="center" valign="middle" scope="col"><h1 class="fd">Administrador de contenido</h1></th>
    <th width="17%" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <td height="21"></td>
    <td colspan="4" align="center" valign="middle" bgcolor="#CECEFF" class="titulos_productos_admin">Editar articulo</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="21"><span class="alineacion_agregar_prodcto"><?php echo $this->Html->link("Agregar Producto", array('action' => 'add')); ?></span></td>
    <td colspan="4" align="center" valign="middle" bgcolor="#FFFFCC" class="alineacion_barra_admin"><?php echo $this->Html->link('Exclusividades',
                  array('controller' => 'exclusividades', 'action' => 'admin_index'),
                  array('class' => "menunaranja",'target' => "_self" ));?> | <?php echo $this->Html->link('Cocina',
					  array('controller' => 'cocinas', 'action' => 'admin_index'),
					  array('class' => "menunaranja",'target' => "_self" ));?> | <?php echo $this->Html->link('Comedor',
                  array('controller' => 'comedores', 'action' => 'admin_index'),
                  array('class' => "menunaranja",'target' => "_self" ));?> | <?php echo $this->Html->link('Escritorio',
                  array('controller' => 'escritorios', 'action' => 'admin_index'),
                  array('class' => "menunaranja",'target' => "_self" ));?> | <?php echo $this->Html->link('Baño',
                  array('controller' => 'banos', 'action' => 'admin_index'),
                  array('class' => "menunaranja",'target' => "_self" ));?></td>
    <td>&nbsp;</td>
  </tr>
  
  <?php 
  		echo "<tr>
    <td height=\"21\"><span class=\"alineacion_agregar_prodcto\"></span></td>
    <td colspan=\"4\" align=\"center\" valign=\"middle\" bgcolor=\"#FFFFCC\" class=\"alineacion_barra_admin\">";
        echo $this->Html->image("escritorio/".$articulo['Escritorio']['id']."_g.jpg",array("width" => "120", "height" => "120"));
        echo $this->Form->create('Escritorio', array('inputDefaults' => array('label' => false),'action' => 'subir_imagen/'.$articulo['Escritorio']['id'], "enctype" => "multipart/form-data"));
	    echo $this->Form->input('imagen',array("type" => "file"));  
        echo $this->Form->end('Aceptar'); 
		echo "</td></tr>";
   								 ?> 
  <?php 
  		echo "<tr><td height=\"100%\"><p>&nbsp;</p></td>
    <td  height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#FFFFCC\">";
		echo "<p  class=\"titulos_productos_admin\">Español </p>";
		echo $this->Form->create('Escritorio', array('action' => 'edit', 'inputDefaults' => array('label' => false)));
											echo "<p>Titulo</p></br>";
											echo $this->Form->input('titulo', array('type' => 'text' ,'length' => '100', 'cols' => '30', 'rows' => '1' ));
											echo "<p>Descripción</p></br>";
											echo $this->Form->input('descripcion');
											echo "<p>Características</p></br>";
											echo $this->Form->input('caracteristicas');
											echo "<p>Color</p></br>";
											echo $this->Form->input('color', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Dimensiones</p></br>";
											echo $this->Form->input('dimensiones' , array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Precio</p></br>";
											echo $this->Form->input('precio', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											$options=array('1'=>'Destacado','0'=>'No destacado');
											$attributes=array('legend'=>false, 'value' => '1');echo $this->Form->radio('destacado',$options,$attributes);
											echo "<p>Texto de Promocion</p></br>";
											echo $this->Form->input('texto_destacado' , array('type' => 'text' ,'length' => '200', 'cols' => '20', 'rows' => '1' ));
											
											echo "</td>";	
											
											
											echo "<td height=\"100%\"><p>&nbsp;</p></td>
    <td height=\"100%\" align=\"center\" valign=\"middle\"  bgcolor=\"#CECEFF\">";
	echo "<p  class=\"titulos_productos_admin\">Frances</p>";
											//Frances
											echo "<p>Titulo</p></br>";
											echo $this->Form->input('titulo_fr');
											echo "<p>Descripción</p></br>";
											echo $this->Form->input('descripcion_fr');
											echo "<p>Caracteristicas</p></br>";
											echo $this->Form->input('caracteristicas_fr');
											echo "<p>Color</p></br>";
											echo $this->Form->input('color_fr', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Dimensiones</p></br>";
											echo $this->Form->input('dimensiones_fr', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Precio</p></br>";
											echo $this->Form->input('precio_fr', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Texto de Promocion en FRANCES</p></br>";
											echo $this->Form->input('texto_destacado_fr' , array('type' => 'text' ,'length' => '200', 'cols' => '20', 'rows' => '1' ));
											
											echo "</tr></td>";	
											
											//Ingles
											echo "<tr><td height=\"100%\"><p>&nbsp;</p></td>
    <td height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#FFFFCC\">";
	echo "<p  class=\"titulos_productos_admin\">Ingles</p>";
											echo "<p>Titulo</p></br>";
											echo $this->Form->input('titulo_en');
											echo "<p>Descripcion</p></br>";
											echo $this->Form->input('descripcion_en');
											echo "<p>Caracteristicas</p></br>";
											echo $this->Form->input('caracteristicas_en');
											echo "<p>Color</p></br>";
											echo $this->Form->input('color_en', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Dimensiones</p></br>";
											echo $this->Form->input('dimensiones_en', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Precio</p></br>";
											echo $this->Form->input('precio_en', array('type' => 'text' ,'length' => '100', 'cols' => '20', 'rows' => '1' ));
											echo "<p>Texto de Promocion en INGLES</p></br>";
											echo $this->Form->input('texto_destacado_en' , array('type' => 'text' ,'length' => '200', 'cols' => '20', 'rows' => '1' ));
																						
											echo $this->Form->end('Aceptar');
			
			echo "</td></tr>";								
?>
  <!-- <tr>
    <td height="100%" rowspan="5"><p>&nbsp;</p>
    <p>&nbsp;</p></td>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC"><p>&nbsp;</p></td>
    <td width="17%" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td width="17%" align="center" valign="middle">&nbsp;</td>
    <td width="17%" align="center" valign="middle">&nbsp;</td>
    <td rowspan="5">&nbsp;</td>
  </tr>
  <tr>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
  </tr>
  <tr>
    <td height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
  </tr>
  <tr>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
    <td width="17%" height="61" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
  </tr>
  <tr>
    <td height="21" colspan="4" align="center" valign="middle" bgcolor="#FFFFCC">&nbsp;</td>
  </tr>-->
</table>
